function isArray (obj) {
  return Object.prototype.toString.call(obj)==='[object Array]'
}
var obj = []
// console.log(Object.prototype.toString.call(obj)); //[object Array]

// var obj = {}
// console.log(Object.prototype.toString.call(obj)); //[object Object]

console.log(isArray(obj));

